package com.hbdl.web.sys.model;

import com.hbdl.common.base.BaseEntity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

@Table(name = "&quot;AttachmentOfCable&quot;")
public class AttachmentOfCable extends BaseEntity implements Serializable {
    /**
     * 电缆附件编号
     */
    @Id
    @Column(name = "&quot;RecordNum&quot;")
    private BigDecimal recordNum;

    /**
     * 电缆附件编号2
     */
    @Column(name = "&quot;AttachmentNum&quot;")
    private BigDecimal attachmentNum;

    /**
     * 电缆设_电缆附件编号
     */
    @Column(name = "&quot;Cab_AttachmentNum&quot;")
    private BigDecimal cab_AttachmentNum;

    /**
     * 电缆设_电缆附件编号2
     */
    @Column(name = "&quot;Cab_AttachmentNum2&quot;")
    private BigDecimal cab_AttachmentNum2;

    /**
     * 电缆编号
     */
    @Column(name = "&quot;CableNum&quot;")
    private BigDecimal cableNum;

    /**
     * 安装位置
     */
    @Column(name = "&quot;Place&quot;")
    private String place;

    /**
     * 线路段起点距离
     */
    @Column(name = "&quot;Distance&quot;")
    private Double distance;

    /**
     * 安装时间
     */
    @Column(name = "&quot;InstallDate&quot;")
    private Date installDate;

    private static final long serialVersionUID = 1L;

    public void setRecordNum(BigDecimal recordNum) {
        this.set("recordNum",recordNum);
    }

    public BigDecimal getRecordNum() {
        return this.getBigDecimal("recordNum");
    }

    public void setAttachmentNum(BigDecimal attachmentNum) {
        this.set("attachmentNum",attachmentNum);
    }

    public BigDecimal getAttachmentNum() {
        return this.getBigDecimal("attachmentNum");
    }

    public void setCab_AttachmentNum(BigDecimal cab_AttachmentNum) {
        this.set("cab_AttachmentNum",cab_AttachmentNum);
    }

    public BigDecimal getCab_AttachmentNum() {
        return this.getBigDecimal("cab_AttachmentNum");
    }

    public void setCab_AttachmentNum2(BigDecimal cab_AttachmentNum2) {
        this.set("cab_AttachmentNum2",cab_AttachmentNum2);
    }

    public BigDecimal getCab_AttachmentNum2() {
        return this.getBigDecimal("cab_AttachmentNum2");
    }

    public void setCableNum(BigDecimal cableNum) {
        this.set("cableNum",cableNum);
    }

    public BigDecimal getCableNum() {
        return this.getBigDecimal("cableNum");
    }

    public void setPlace(String place) {
        this.set("place",place);
    }

    public String getPlace() {
        return this.getString("place");
    }

    public void setDistance(Double distance) {
        this.set("distance",distance);
    }

    public Double getDistance() {
        return this.getDouble("distance");
    }

    public void setInstallDate(Date installDate) {
        this.set("installDate",installDate);
    }

    public Date getInstallDate() {
        return this.getDate("installDate");
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", recordNum=").append(this.getRecordNum());
        sb.append(", attachmentNum=").append(this.getAttachmentNum());
        sb.append(", cab_AttachmentNum=").append(this.getCab_AttachmentNum());
        sb.append(", cab_AttachmentNum2=").append(this.getCab_AttachmentNum2());
        sb.append(", cableNum=").append(this.getCableNum());
        sb.append(", place=").append(this.getPlace());
        sb.append(", distance=").append(this.getDistance());
        sb.append(", installDate=").append(this.getInstallDate());
        sb.append("]");
        return sb.toString();
    }
}